<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>

<script type="text/javascript">

	function checkForm() {
		var deptId = document.getElementById("deptId").value;
		var deptName = document.getElementById("deptName").value;
				
		if (deptId == 0) {
			alert("请输入院系编号！");
			return false;
		}
		if (deptName == 0) {
			alert("请输入院系名称！");
			return false;
		}
	}
</script>

<style type="text/css">
<!--
.STYLE1 {
	font-size: 12px
}

.STYLE3 {
	color: #707070;
	font-size: 12px;
}

.STYLE5 {
	color: #0a6e0c;
	font-size: 12px;
}

body {
	margin-top: 0px;
	margin-bottom: 0px;
}

.STYLE7 {
	font-size: 12
}
-->
</style>

<html:form action="department.do?method=updateSave" method="post" onsubmit="return checkForm();">
	<html:hidden property="id" value="${dept.id}" />
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td height="30">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td>&nbsp;</td>
					<td style="padding-right: 10px;">
					<div align="right"></div>
					</td>
				</tr>
			</table>
			</td>
		</tr>
		<tr>
			<td>
			<table width="100%" border="0" cellpadding="0" cellspacing="1"
				bgcolor="#c9c9c9">
				<tr>
					<td width="70%" height="22" bgcolor="#FFFFFF"><strong><span
						class="STYLE1">修改教学院系</span></strong></td>			
			  </tr>
				<tr>
					<td bgcolor="#FFFFFF">
					<table width="700" border="0" align="center" cellpadding="0"
						cellspacing="0">
						<tr>
							<td width="193" align="right">教学院系编号：</td>
			  <td width="507"><html:text property="deptId" value="${dept.deptId }" />
								<font color="red">${deptIdError }</font>
								<font color="red">${deptIdRequest }</font>							</td>
					  </tr>
						<tr>
							<td align="right">教学院系名称：</td>
							<td width="507"><html:text property="deptName" value="${dept.deptName }" />
								<font color="red">${deptNameError }</font>							</td>
					  </tr>
						<tr>
							<td>&nbsp;</td>
							<td>&nbsp;</td>
						</tr>
						<tr>
							<td align="center">&nbsp;</td>
							<td><html:submit value="确认修改" /> &nbsp;&nbsp;&nbsp; <html:reset
								value="取 消" /></td>
						</tr>
					</table>					</td>
				</tr>
			</table>
		  </td>
		</tr>
		<tr>
			<td height="35">&nbsp;</td>
		</tr>
	</table>
</html:form>